import tool from '@/util/tool'

const baseComponent = [
  {
    v1: true,
    _id: '',
    name: '图片广告(图片点击跳转指定页面)',
    code: 'ImageModule',
    properties: 'ImageEditor',
    ico: '/images/component-ico/picture.png',
    layout: 1,
    shadow: 0,
    shadow_color: 'rgba(110,127,150,0.13)',
    shadow_x: 0,
    shadow_y: 2,
    shadow_blur: 14,
    shadow_spread: 0,
    radius: 0,
    radius_value: 8,
    contentBorder: 0,
    imageGutter: 0,
    indicator: 1,
    swipeVisible: true,
    autoplay: 0,
    showPicNum: 3,
    imageList: []
  },
  {
    v1: true,
    _id: '',
    name: '轮播图(跑马灯展示)',
    code: 'SlideModule',
    properties: 'SlideEditor',
    ico: '/images/component-ico/banner.png',
    status: 1,
    list: []
  },
  {
    v1: true,
    _id: '',
    name: '辅助分割(用于页面切割，组件间隔)',
    code: 'DivisionModule',
    properties: 'DivisionEditor',
    ico: '/images/component-ico/divider.png',
    h: 30,
    layout: 1,
    borderType: 'solid',
    borderMargin: 0,
    borderColor: '#E6E8EB'
  },
  {
    v1: false,
    _id: '',
    name: '魔方(用于图片的花式组合)',
    code: 'MagicCubeModule',
    properties: 'MagicCubeEditor',
    ico: '/images/component-ico/mofang.png',
    layout: 1,
    shadow: 0,
    shadow_color: 'rgba(110,127,150,0.13)',
    shadow_x: 0,
    shadow_y: 2,
    shadow_blur: 14,
    shadow_spread: 0,
    radius: 0,
    radius_value: 8,
    contentBorder: 0,
    imageGutter: 0,
    imageList: []
  },
  {
    v1: false,
    _id: '',
    name: '图文导航(icon 的金刚区展示)',
    code: 'NavigateModule',
    properties: 'NavigateEditor',
    ico: '/images/component-ico/navigate.png',
    screenNum: 1,
    rowNum: 1,
    navNumPerRow: 5,
    textSize: 14,
    radius: 0,
    radius_value: 8,
    leftRightPad: 0,
    upDownPad: 0,
    bgColor: '#FFFFFF',
    textColor: '#343434',
    imageSize: 74,
    imageList: [],
    rowGutter: 8,
    placeholder: {},
    showTitle: 'Y'
  },
  {
    _id: '',
    name: '锚点(组件之间快速定位)',
    code: 'AnchorPoint',
    properties: 'AnchorPointEditor',
    ico: '/images/component-ico/md.png',
    backgroundColor: '#8300D8',
    textColor: '#fff',
    activeTextColor: '#fff',
    startColor: '#FB586E',
    endColor: '#FF40C9',
    styleType: 1,
    iconType: 1,
    tabs: [
      {
        name: '锚点组件1',
        labelComponentId: '',
        labelComponentName: '',
        iconUrl: '',
        activeIconUrl: '',
        _id: tool.guid()
      },
      {
        name: '锚点组件2',
        labelComponentId: '',
        labelComponentName: '',
        iconUrl: '',
        activeIconUrl: '',
        _id: tool.guid()
      }
    ]
  }
]

export default baseComponent
